/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package frames;

/**
 *
 * @author Jesus
 */
public class Servidorm1 extends javax.swing.JFrame {

    /**
     * Creates new form Servidores
     */
    int contm1 = 0;
    public Servidorm1() {
        initComponents();
    }
    public Servidorm1(Inventario a) {
        initComponents();
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();

        setTitle("Servidor Mujer 1");

        jLabel2.setText("jLabel2");

        jLabel3.setText("jLabel3");

        jLabel4.setText("jLabel4");

        jLabel5.setText("jLabel5");

        jLabel6.setText("jLabel6");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(42, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(26, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Servidorm1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Servidorm1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Servidorm1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Servidorm1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Servidorm1().setVisible(true);
            }
        });
    }
    
    public void mostar_serviciom1(char tipo,int babero, char sexo, char tam){
        
        
        String tamanio = "";
        switch (tam) {
            case 'P':
                tamanio = "Pequeño";
                break;
            case 'M':
                tamanio = "Mediano";
                break;
            case 'G':
                tamanio = "Grande";
                break;
        }
        contm1++;
        jLabel6.setText("Atendidas: "+contm1+" Personas");
        switch (tipo){
            case 'E':
                jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+sexo+"e.png")));
                jLabel2.setText("Toga y Birrete: Especialista");
                jLabel3.setText("Tamaño: "+tamanio);
                jLabel4.setText("Babero: Sin Babero");
                jLabel5.setText("Sexo: Mujer");
                //_nombre.setText("Toga y Birrete Especialista");
                break;
            case 'M':
                jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+sexo+"p.png")));
                jLabel2.setText("Toga y Birrete: Magister");
                jLabel3.setText("Tamaño: "+tamanio);
                jLabel4.setText("Babero: Sin Babero");
                jLabel5.setText("Sexo: Mujer");
                //_nombre.setText("Toga y Birrete Magister");
                break;
            case 'C':
                jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+sexo+"s.png")));
                jLabel2.setText("Toga y Birrete: Suma Cumlaude");
                jLabel3.setText("Tamaño: "+tamanio);
                jLabel4.setText("Babero: Sin Babero");
                jLabel5.setText("Sexo: Mujer");
                //_nombre.setText("Toga y Birrete Toga Suma Cumlaude");
                break;
            case 'N':
                if (babero == 0) {
                    jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/" + sexo + ".png")));
                    jLabel2.setText("Toga y Birrete: Negro");
                    jLabel3.setText("Tamaño: " + tamanio);
                    jLabel4.setText("Babero: Sin Babero");
                    jLabel5.setText("Sexo: Mujer");
                    //_nombre.setText("Toga y Birrete Negro");
                } else {
                    if (babero == 1) {
                        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/" + sexo + "c.png")));
                        jLabel2.setText("Toga y Birrete: Negro");
                        jLabel3.setText("Tamaño: " + tamanio);
                        jLabel4.setText("Babero: Babero de Cumlaude");
                        jLabel5.setText("Sexo: Mujer");
                        //_nombre.setText("Toga y Birrete Cumlaude");
                    } else {
                        if (babero == 2) {
                            jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/" + sexo + "m.png")));
                            jLabel2.setText("Toga y Birrete: Negro");
                            jLabel3.setText("Tamaño: " + tamanio);
                            jLabel4.setText("Babero: Babero de Magna Cumlaude");
                            jLabel5.setText("Sexo: Mujer");
                            //_nombre.setText("Toga y Birrete Magna Cumlaude");
                        }
                    }
                }
                break;
        }
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    // End of variables declaration//GEN-END:variables
}
